<template>
	<view class="" style="padding: 20rpx;">
		<!-- <view>{{ title }}</view> -->
		<rich-text :nodes="richText"></rich-text>
	</view>
</template>

<script>
	import {
		get_agreement_api
	} from '@/common/api.js'
	export default {
		data() {
			return {
				title: "",
				richText: "",
			}
		},
		onLoad() {			
			get_agreement_api({
				id: 1
			}).then(res => {
				if (1 == res.code) {
					this.title = res.data.title
					this.richText = res.data.content
				}
			})
		},
		methods: {

		}
	}
</script>

<style>
</style>